<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="jquery/jquery-1.7.2.min.js"></script>
<title>Insert title here</title>
<script>
$(document).ready(function(){
	$("#submit_But").click(function(){
	    var task_id = $("#task_id").val();
        alert(task_id);
        $.ajax({
			url: "http://localhost:8091/CloudDongInterface/rest/dns/testceshi",
			type:"post",
			async: true, 
			dataType:"json",
			data:{"taskid":task_id,"nana":"dddd"},
			success: function(data){
			 alert(JSON.stringifydata);
		    },
		    error: function(){
		    alert("请求失败");
		    }
		});
	});
});
</script>
</head>
<body>
<div>

    <form method="post" id="myform">
        <label>task_id  <input type="text" id="task_id" value="53"/><br/>
            <input type="button" value="提交" id="submit_But">
    </form>
</div>
</body>
</html>